package web2023.team.homework_10_aop.entity;

import java.sql.Timestamp;

public class Login_info {
    private Integer login_info_id;
    private String username;   // 用户名
    private String ip;         // ip地址
    private Timestamp time;    // 登陆时间

    public Login_info() {
    }

    public Login_info(Integer login_info_id, String username, String ip, Timestamp time) {
        this.login_info_id = login_info_id;
        this.username = username;
        this.ip = ip;
        this.time = time;
    }

    public Integer getLogin_info_id() {
        return login_info_id;
    }

    public String getUsername() {
        return username;
    }

    public String getIp() {
        return ip;
    }

    public Timestamp getTime() {
        return time;
    }

    public void setLogin_info_id(Integer login_info_id) {
        this.login_info_id = login_info_id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Login_info{" +
                "login_info_id=" + login_info_id +
                ", username='" + username + '\'' +
                ", ip='" + ip + '\'' +
                ", time=" + time +
                '}';
    }
}
